#ifndef __ISR_H
#define __ISR_H
#include <stdbool.h>
#include <stdint.h>

/* Flag set by external interrupt on encoder pin (PA7) */
extern volatile uint8_t encoderEvent;
/* Flag set by timer interrupt */
extern volatile uint8_t timerEvent;
extern volatile uint32_t gInterruptLine0Status;
extern volatile bool gServiceInt;  // 修改为gServiceInt
extern volatile uint32_t gCanInterruptCount;  // 添加中断计数器声明

#endif /* __ISR_H */
